#include #include using namespace std; //Modify this program to display 1 of n things //1) Complete the diamond //2) Complete a hollow diamond //3) Inverted diamond in box //4) Hourglass shape //5) ASCII Art - upper case letter, different sizes void main() { int c = 0; int r; cout << "Times to repeat? "; cin >> r; for (int i = 1; i <= r; i++) { for (int j = 1; j <= i; j++) { //add spaces for (int s = 0; s < (i-j);s++) { cout << " "; } for (int k = 0; k < j + j - 1; k++) { cout << "*"; c++; } cout << endl; } cout << endl; } cout << c << endl; }